翻訳と辞書
Words near each other
・ BSC Raiffeisen Panthers Fürstenfeld
・ BSC Rehberge Berlin
・ BSC Saturn Köln
・ BSC Sendling
・ BSC SWOT
・ BSC YB Frauen
・ BSC Young Boys
・ BSc. HCM
・ Bschießer
・ BSCI
・ BSCL2
・ BSCP
・ BSCS
・ BSD (disambiguation)
・ BSD Authentication
BSD checksum
・ BSD Daemon
・ BSD disklabel
・ BSD domain
・ BSD licenses
・ BSD Records
・ BSD Router Project
・ BSD/OS
・ BSDL
・ BSE
・ BSE DCI
・ BSE Pro
・ BSE SENSEX
・ BSE Tower
・ BSE Tower (Bucharest)


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

BSD checksum : ウィキペディア英語版
BSD checksum
The BSD checksum algorithm is a commonly used, legacy checksum algorithm. It has been implemented in BSD and is also available through the GNU sum command line utility.
==Computation of the BSD checksum==
Below is the relevant part of the GNU sum source code (GPL licensed). It computes a 16-bit checksum by adding up all bytes (8-bit words) of the input data stream. In order to avoid many of the weaknesses of simply adding the data, the checksum accumulator is circular rotated to the right by one bit at each step before the new char is added.

int bsdChecksumFromFile(FILE
*fp) /
* The file handle for input data
*/

Below is a sample java code that calculates an 8-bit checksum. It adds each byte from the input byte array after a circular rotation of the checksum.

byte checksum(byte[] input)


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「BSD checksum」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.